projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a900ca
)
* coding.c (produce_chars): Use ptrdiff_t, not int.
author
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 17 Jun 2012 07:57:28 +0000
(
00:57
-0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 17 Jun 2012 07:57:28 +0000
(
00:57
-0700)
src/ChangeLog
patch
|
blob
|
history
src/coding.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index 662aa5232ab50ef5c92a4f22ec04adcc3377e69e..ded14de2c4138ef706c366992554b31d455df82e 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-1,5
+1,7
@@
2012-06-17 Paul Eggert <eggert@cs.ucla.edu>
+ * coding.c (produce_chars): Use ptrdiff_t, not int.
+
* xterm.c (x_draw_underwave): Check for integer overflow.
This pacifies gcc 4.7.0 -Wunsafe-loop-optimizations on x86-64.
diff --git
a/src/coding.c
b/src/coding.c
index ab13f0311c0db202b24c038048589c77858f54a4..64826ae16b9a345623f4bf90df4ade269bfdbe6d 100644
(file)
--- a/
src/coding.c
+++ b/
src/coding.c
@@
-6765,7
+6765,8
@@
produce_chars (struct coding_system *coding, Lisp_Object translation_table,
while (buf < buf_end)
{
- int c = *buf, i;
+ int c = *buf;
+ ptrdiff_t i;
if (c >= 0)
{